package com.aaa.controller;

import com.aaa.entity.Color;
import com.aaa.entity.Ram;
import com.aaa.service.ColorService;
import com.aaa.service.RamService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("ram")
public class RamController {

    @Resource
    RamService ramService;

    @RequestMapping("select")
    @ResponseBody
    public List<Ram> select(){
        return ramService.select();
    }
}
